package API.File.Constructor;

import java.io.File;

public class Example {
    public static void main(String[] args) {
        String mainPath = "git-container-java\\src\\API\\File\\Constructor\\File.txt";
        String parentPath = "git-container-java\\src\\API\\File\\Constructor";
        String childPath = "File.txt";
        File file1 = new File(mainPath);
        File file2 = new File(parentPath, childPath);
        File fileTemp = new File(parentPath);
        File file3 = new File(fileTemp, childPath);
        System.out.println(file1.canRead());
        System.out.println(file2.canRead());
        System.out.println(file3.canRead());
    }
}
